package com.day0922.json;

// 完整的Java Bean  能给别人用的
// 有参构造  get/set方法

public class Dog {
    private String name;
    private int age;
    private String strain;

    public Dog(String name, int age, String strain) {
        this.name = name;
        this.age = age;
        this.strain = strain;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
}
